4. Medications Over-the-counter medications such as kaolin-pectin can provide temporary relief but consult a veterinarian for the appropriate pharmacological treatments. In cases of bacterial infections, antibiotics may be necessary, while antiparasitic medications can treat parasitic infections.